#!/usr/bin/env python3
list1 = []
list2 = ["w","e","6"]
su = 0
for i in range(1,101,1):
    list1.append(i)

while len(list1) > 1:
    su = len(list1)
    list2.clear()
    for i in range(1,su+1,1):
        if (i%2==0) :
            list2.append(list1[i-1])
    list1.clear()
    list1.extend(list2)
print("最后幸存者",list1,"号")